package com.cw.frame.codegen;

/**
 * <p>Project:			<p>
 * <p>Module:			<p>
 * <p>Description:		<p>
 *
 * @author chenw
 * @date 2016年5月16日 下午8:07:48
 */
public class JavaConfiguration {

    private static JavaConfiguration configuration;
    /**
     * The java source templates directory
     */
    private String javaTemplatePath;
    /**
     * The java source output directory
     */
    private String javaOutputPath;
    /**
     * The page file (js, jsp) templates directory
     */
    private String pageTemplatePath;
    /**
     * The page file (js, jsp) output directory
     */
    private String pageOutputPath;
    /**
     * The packages names, separated by comma ','.
     */
    private String packages;
    /**
     * The table names, separated by comma ','.
     */
    private String tableNames;
    /**
     * The entity class names, separated by comma ','.
     */
    private String entityClasses;
    private String author; // 作者 用于註釋
    private String pagePath; // 頁面路徑

    synchronized public static JavaConfiguration getDefault() {
        if (configuration != null) {
            return configuration;
        }
        configuration = new JavaConfiguration();
        return configuration;
    }

    public String getJavaTemplatePath() {
        return javaTemplatePath;
    }

    public void setJavaTemplatePath(String javaTemplatePath) {
        this.javaTemplatePath = javaTemplatePath;
    }

    public String getJavaOutputPath() {
        return javaOutputPath;
    }

    public void setJavaOutputPath(String javaOutputPath) {
        this.javaOutputPath = javaOutputPath;
    }

    public String getPageTemplatePath() {
        return pageTemplatePath;
    }

    public void setPageTemplatePath(String pageTemplatePath) {
        this.pageTemplatePath = pageTemplatePath;
    }

    public String getPageOutputPath() {
        return pageOutputPath;
    }

    public void setPageOutputPath(String pageOutputPath) {
        this.pageOutputPath = pageOutputPath;
    }

    public String getPackages() {
        return packages;
    }

    public void setPackages(String packages) {
        this.packages = packages;
    }

    public String getTableNames() {
        return tableNames;
    }

    public void setTableNames(String tableNames) {
        this.tableNames = tableNames;
    }

    public String getEntityClasses() {
        return entityClasses;
    }

    public void setEntityClasses(String entityClasses) {
        this.entityClasses = entityClasses;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPagePath() {
        return pagePath;
    }

    public void setPagePath(String pagePath) {
        this.pagePath = pagePath;
    }

}
